<?php
class Admin_Form_Registration extends Zend_Form
{
    //put your code here
    public function init()
    {
        $this->setAttrib('id', 'formid');
        $this->setMethod(Zend_Form::METHOD_POST);
        $name = $this->createElement('text', 'name');
        $name->setLabel('Enter Name');
        $name->setRequired(true);
        $this->addElement($name);
        $submit = $this->createElement('submit', 'submit');
        $this->addElement($submit);
    }
}
?>